package com.yunpeng.dishes.dao.model;

import java.util.Date;

/**
 * BaseDataDO 主数据表
 *
 * @author : Moore(hemw)
 * @date : 2020-03-26
 */
public abstract class BaseDataDO extends BaseDO {
    /**
     * 业务主键
     */
    protected String code;

    public BaseDataDO() {
    }

    public BaseDataDO(Long id, Short flag, Long creator, Date createTime, Long updater, Date updateTime, String code) {
        super(id, flag, creator, createTime, updater, updateTime);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "BaseDataDO{" +
                "id=" + id +
                ", flag=" + flag +
                ", creator='" + creator + '\'' +
                ", createTime=" + createTime +
                ", updater='" + updater + '\'' +
                ", updateTime=" + updateTime +
                ", code='" + code + '\'' +
                "} ";
    }
}
